| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273 |
- #postView {
- padding: 25px 32px 32px 32px;
- min-width: 410px;
- max-width: 1920px;
- margin: 0 auto;
- section {
- // 제목
- &.subject {
- font-size: 1.5rem;
- font-weight: 600;
- margin-bottom: 10px;
- }
- // 상단
- &.attribution {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- div:first-child {
- flex-grow: 0;
- padding-right: 20px;
- }
- div:last-child {
- display: grid;
- grid-template-columns: auto auto;
- grid-template-rows: repeat(2, 1fr);
- grid-template-areas: "writer-info post-date"
- "post-info functions";
- align-items: center;
- flex-grow: 1;
- column-gap: 0;
- row-gap: 10px;
- article {
- &.writer-thumb {
- grid-area: writer-thumb;
- > img {
- width: 100%;
- max-width: 92px;
- object-fit: cover;
- }
- }
- &.writer-info {
- grid-area: writer-info;
- > ul {
- li {
- &:nth-of-type(2) {
- align-self: center;
- font-size: 0.875rem;
- }
- }
- }
- }
- &.post-info {
- grid-area: post-info;
- }
- &.post-date {
- grid-area: post-date;
- text-align: right;
- }
- &.functions {
- grid-area: functions;
- justify-self: flex-end;
- }
- > ul {
- display: flex;
- flex-wrap: wrap;
- column-gap: 10px;
- row-gap: 0;
- list-style: none;
- li {
- position: relative;
- // 가운데 점 추가
- &::after {
- content: '·';
- margin-left: 10px;
- color: #999;
- }
- // 마지막 li는 점 숨김
- &:last-child::after {
- content: '';
- margin: 0;
- }
- a, button {
- color: #0D6295;
- text-decoration: none;
- &:hover {
- text-decoration: underline;
- color: #c7511f;
- }
- }
- }
- }
- }
- }
- @media (max-width: 1140px) {
- div:last-child {
- grid-template-columns: auto 1fr;
- grid-template-rows: auto auto auto auto;
- grid-template-areas: "writer-thumb writer-info"
- "writer-thumb post-info"
- "writer-thumb post-date"
- "writer-thumb functions";
- align-items: center;
- grid-auto-rows: auto;
- row-gap: 2px;
- column-gap: 0;
- article {
- &.post-date {
- text-align: left;
- }
- &.functions {
- justify-self: start;
- }
- }
- }
- }
- }
- &.content {
- min-height: 300px;
- display: flex;
- flex-direction: column;
- article {
- font-size: 1.063rem;
- line-height: 1.25;
- // 본문 내용
- &:first-of-type {
- flex-grow: 1;
- // 첨부 파일
- section.file-embed {
- display: inline-block;
- width: max-content;
- max-width: 100%;
- padding: 5px 40px;
- border: 1px solid #ccc;
- border-radius: 5px;
- background: #f9f9f9;
- margin: 5px 0;
- box-sizing: border-box;
- .file-icon svg {
- width: 19px;
- height: 19px;
- display: inline-block;
- vertical-align: sub;
- padding-right: 5px;
- }
- &.image-style-align-left {
- margin-left: 0;
- margin-right: auto;
- }
- &.image-style-align-center {
- display: block;
- margin-left: auto;
- margin-right: auto;
- }
- &.image-style-align-right {
- margin-left: auto;
- margin-right: 0;
- }
- &:hover {
- background-color: #f0f0f0;
- border-color: #c7511f;
- cursor: pointer;
- }
- }
- p a {
- color: #0D6295;
- text-decoration: none;
- &:hover,
- &:focus {
- text-decoration: underline;
- color: #c7511f;
- }
- }
- }
- // 태그
- &:last-of-type {
- span {
- padding-right: 6px;
- a {
- color: #0D6295;
- text-decoration: none;
- &:hover {
- text-decoration: underline;
- color: #c7511f;
- }
- }
- }
- }
- }
- }
- &.controls {
- display: flex;
- justify-content: space-between;
- align-items: center;
- gap: 0;
- article {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- gap: 7px;
- }
- }
- }
- hr {
- margin: 14px 0;
- }
- }
- // 인쇄 설정
- @media print {
- body {
- /* 인쇄할 요소만 보이게 */
- #main, #container {
- visibility: visible;
- display: block;
- all: unset;
- width: 100%;
- height: auto;
- position: static;
- padding: 0;
- margin: 0 auto;
- overflow: visible;
- }
- #header, #ticker, #footer, #aside {
- display: none;
- visibility: hidden;
- }
- html, body {
- width: 100%;
- height: auto;
- overflow: visible;
- }
- }
- }
|